﻿using RbacPermissionManage.Application.Roles.Dto;

namespace RbacPermissionManage.Application.Roles
{
    public interface IRoleServices
    {
        Task<ResultDto> CreateAsync(RoleCreateDto createDto);
        Task<ResultDto<(int, List<RoleListDto>)>> GetRoleAsync(SearchDto searchDto, int pageIndex, int pageSize);
        Task<ResultDto<RoleListDto>> BackfillAsync(int RoleId);
        Task<ResultDto> UpdateAsync(RoleUpdateDto updateDto);
        Task<ResultDto<bool>> DeleteAsync(int RoleId);
        Task<ResultDto<bool>> BatchDelAsync(List<int> roleIds);
    }
}